package ModStats;

import java.util.ArrayList;
import java.util.List;

public class InputObject {
	
	private String Name;
	 
	private List<ValuesList> Data;
	/*private ArrayList<Double> SepalLgth = new ArrayList<Double>();
	private ArrayList<Double> SepalWdth = new ArrayList<Double>();
	private ArrayList<Double> PetalLgth = new ArrayList<Double>();
	private ArrayList<Double> PetalWdth = new ArrayList<Double>();*/
	
	/**
	 * 
	 */
	//ArrayList<Double> splLgth, ArrayList<Double> splWdth, ArrayList<Double> ptlLgth, ArrayList<Double> ptlWdth
	public InputObject(String name){
		Name = name;
		Data = new ArrayList<ValuesList>();
	}
	
	/**
	 * Getters
	 * 
	 */
	
	public String getName(){
		return Name;
	}
	
	
	public ValuesList getValuesList(int index) {
		return Data.get(index);
	}
	
	/**
	 * Setters
	 * 
	 */
	public void setListData(List<ValuesList> l){
		/*for(int i = 0; i < l.size(); i++) {
			Data.add(l.get(i));
			for(int j = 0; j < l.get(i).size(); j++)
				Data.get(i).add(l.get(i).get(j));
		}*/
		
		
		for(ValuesList vl : l) {
			ValuesList vlTemp = new ValuesList();
			for(int j = 0; j < vl.size(); j++)
				vlTemp.add(vl.get(j));
			Data.add(vlTemp);
		}
		
	}
	

}
